#include <iostream>
#include <cmath>
using namespace std;

int main(){
    int a,x;
    cin>>a;
    x=2;
    cout<<"<"<<a<<">"<<endl;
    while(x<=a){
        if(a%x==0){
            cout<<x<<" ";
            while(a%x==0){
                a=a/x;
            }
        }
        x++;
    }
    cout<<endl;
}
